import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: (resolve) => require(['../pages/home'], resolve),
      children: [
        {
          path: 'page1',
          name: 'page1',
          component: (resolve) => require(['../pages/page1'], resolve),
        },
        {
          path: 'page2',
          name: 'page2',
          component: (resolve) => require(['../pages/page2'], resolve),
        },
      ]
    }
  ]
});
